package net.wanho.mapper;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import net.wanho.po.Role;
import net.wanho.po.UserInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author 32033
 * @description 针对表【user_info(用户表)】的数据库操作Mapper
 * @createDate 2025-01-11 17:01:23
 * @Entity net.wanho.po.UserInfo
 */

@Mapper
public interface UserInfoMapper extends BaseMapper<UserInfo> {

    UserInfo selectByUserName(String userCode);

    Page<UserInfo> selectByPage(Page<UserInfo> page, @Param("ew") QueryWrapper<UserInfo> wrapper);

    void deleteBatch(List<Integer> ids);

    List<Role> getUserRoleList(String userId);

    List<Integer> findUserAuthList(Integer userId);
}




